package com.secsys.action;

import java.util.Map;

import org.apache.struts2.interceptor.ApplicationAware;
import org.apache.struts2.interceptor.RequestAware;
import org.apache.struts2.interceptor.SessionAware;

import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;

/**
 * @Description Action
 * @author LiusQ
 * @date 2011-3-29
 * @param <T>
 */
public abstract class BaseAction<T> extends ActionSupport implements
		ModelDriven<T>, RequestAware, SessionAware, ApplicationAware {
	private static final long serialVersionUID = -3057384461401628777L;
	protected Map<String, Object> request;
	protected Map<String, Object> response;
	protected Map<String, Object> session;
    protected Map<String,Object> application;

	public void setApplication(Map<String, Object> application) {
		this.application = application;
	}

	public void setRequest(Map<String, Object> request) {
		this.request = request;
	}

	public void setResponse(Map<String, Object> response) {
		this.response = response;
	}

	public void setSession(Map<String, Object> session) {
		this.session = session;
	}

}
